package com.cauli.file.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import lombok.Data;

/**
 * @author Cauli
 * @date 2023-03-18 12:00
 * @description 图像
 */
@Data
@TableName("image")
@ApiModel(value = "Image", description = "图像")
public class Image{
    /**
     *
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId("image_id")
    private Long imageId;

    /**
     * 文件id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @TableField("file_id")
    private Long fileId;

    /**
     * 图像的高
     */
    @TableField("image_height")
    private Integer imageHeight;

    /**
     * 图像的宽
     */
    @TableField("image_width")
    private Integer imageWidth;
}
